package cn.edu.sgu.www.mhxysy.entity.equipment;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 装备
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("equipment")
public class Equipment implements Serializable {
	private static final long serialVersionUID = 18L;

	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value = "ID")
	private String id;

	/**
	 * 装备评分
	 */
	@ApiModelProperty(value = "评分")
	private Integer score;

	/**
	 * 打造者
	 */
	@ApiModelProperty(value = "打造者")
	private String forger;

	/**
	 * 耐久度
	 */
	@ApiModelProperty(value = "耐久度")
	private Integer durability;

	/**
	 * 穿戴状态
	 * 0-未穿戴；1-穿戴中
	 */
	@ApiModelProperty(value = "穿戴状态")
	private Integer wearStatus;

	/**
	 * 打造类型
	 */
	@ApiModelProperty(value = "打造类型")
	private Integer forgeType;

	/**
	 * 修理失败次数
	 */
	@ApiModelProperty(value = "修理失败次数")
	private Integer failTimes;

	/**
	 * 角色ID
	 */
	@ApiModelProperty(value = "角色ID")
	private String roleId;

	/**
	 * 特技ID
	 */
	@ApiModelProperty(value = "特技ID")
	private Integer tejiId;

	/**
	 * 特效ID
	 */
	@ApiModelProperty(value = "特效ID")
	private Integer texiaoId;

	/**
	 * 装备类型ID
	 */
	@ApiModelProperty(value = "装备类型ID")
	private Integer categoryId;

	/**
	 * 附灵状态
	 * 0-未附灵；1-已附灵
	 */
	/*
	 * 等级>=90级的装备开启附灵功能
	 * 未附灵的装备外观显示为低10级的装备造型，如100级武器未附灵显示为90级造型
	 */
	@ApiModelProperty(value = "附灵状态")
	private Integer fulingStatus;

	public String uuid() {
		return IdentifierPrefixes.PREFIX_JSZB + StringUtils.uuid();
	}

}